package convertisseur.view;

import java.awt.FlowLayout;
import java.awt.Frame;
import java.awt.GridLayout;
import java.awt.Label;
import java.awt.Panel;
import java.awt.TextField;

public class ConvertisseurWindow extends Frame{
	private static final String EURO = "Euros : ";
	private static final String DOLLAR = "Dollars : ";
	private TextField textEuros;
	private TextField textDollars;
	private Label label1, label2;
	private Panel p1;
	
	public ConvertisseurWindow(String titre){
		super(titre);
		setLayout(new FlowLayout(FlowLayout.LEFT));
		p1 = new Panel();
		p1.setLayout(new GridLayout(2, 2, 10, 10));
		
		label1 = new Label(EURO);
		label2 = new Label(DOLLAR);
		
		textEuros = new TextField();
		textDollars = new TextField();
		
		add(p1);
		p1.add(label1);
		p1.add(textEuros);
		p1.add(label2);
		p1.add(textDollars);
		
		this.pack();
		this.setVisible(true);
	}

}
